home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
util
/
cdity
/
ModeProSrc.lha
/
Daemon
/
Unnamed1
/
40beta
/
MPGui.c
next >
Wrap
C/C++ Source or Header
|
1996-06-12
|
986b
|
61 lines
#include "MP.h"
#include <dos/dostags.h>
#include <dos/dosextens.h>
extern STRPTR PrefsPath;
/*
void __regargs _CXBRK(int l);
void __regargs _CXBRK(int l)
{
}
void __regargs __chkabort(void);
void __regargs __chkabort(void)
{
}
*/
BOOL ShowGUI(void)
{
ULONG l;
BPTR sl;
struct Process *proc;
if(SendPrefsMsg(MP_PREFSTOFRONT,0,0) < 0)
{
SystemTags(PrefsPath,
SYS_Asynch,TRUE,
SYS_Input ,0,
SYS_Output ,0,
TAG_DONE);
/*
if(sl=NewLoadSegTags(PrefsPath,0))
{
printf("seglist %8x %8x\n",sl*4,sl<<2);
if(proc=CreateNewProcTags(NP_Seglist ,sl<<2,
NP_Name ,"ModePro",
TAG_DONE))
{
// printf("Process=%8x\n",proc);
}
else
{
// printf("CNP() Failed\n");
UnLoadSeg(sl);
}
}
*/
}
return(1);
}
void HideGUI(void)
{
SendPrefsMsg(MP_PREFSCLOSE,0,0);
}